/**
 * Modal 组件导出
 */

import type { App } from 'vue'
import Modal from './Modal.vue'
import type { ModalProps, ModalEmits } from './types'

// 添加 install 方法，支持 Vue.use() 注册
Modal.install = (app: App) => {
  app.component('VtModal', Modal)
  app.component('Modal', Modal)
}

export { Modal }
export type { ModalProps, ModalEmits }
export default Modal